import Vue from 'vue'
import Vuex from 'vuex'
import moduleUser from '@/store/user.js'
import moduleCourse from '@/store/course.js'
import moduletodo from '@/store/todolist.js'
import modulechat from '@/store/chat.js'
import modulepay from '@/store/pay.js'
import modulecount from '@/store/countdown.js'
import modulelife from '@/store/lifething.js'
import moduleword from '@/store/historyword.js'
import moduletomato from '@/store/tomato.js'

Vue.use(Vuex)

const store = new Vuex.Store({
	modules: {
		'm_user': moduleUser,
		'm_course': moduleCourse,
		'm_todo': moduletodo,
		'm_chat': modulechat,
		'm_pay': modulepay,
		'm_count': modulecount,
		'm_life': modulelife,
		'm_word': moduleword,
		'm_tomato':moduletomato
	}
})

export default store